package com.wzh.service;

import com.wzh.dao.Personquesdao;
import com.wzh.pojo.Po.Personques;
import com.wzh.pojo.Po.Questions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Personquesser {
	@Autowired
	private Personquesdao personquesdao;

	public List<Questions> getsome(int userid){
		return personquesdao.getsome(userid);
	};
	public boolean delete(Personques personques){
		return personquesdao.deonebyid(personques)>0;
	}
	public boolean add(Personques personques){
		return personquesdao.addnew(personques)>0;
	}


}
